from typing import *


class Solution:

    def trulyMostPopular(self, names: List[str],
                         synonyms: List[str]) -> List[str]:

        h = DefaultDict(int)
        for name in names:
            l = name.find('(')
            h[name[:l:]] = int(name[l + 1:-1])
        for a in synonyms:
            print(eval(a))


# s = Solution()
# print(
#     s.trulyMostPopular(
#         ["John(15)", "Jon(12)", "Chris(13)", "Kris(4)", "Christopher(19)"],
#         ["(Jon,John)", "(John,Johnny)", "(Chris,Kris)", "(Chris,Christopher)"
#          ]))


print(eval("('Jon','John')"))